home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / CLELEM.HPP < prev    next >
C/C++ Source or Header  |  1993-06-01  |  3KB  |  93 lines

  1. //----------------------------------------------------------------------------
  2. //                            MODULE DESCRIPTION
  3. //
  4. //  Module:    clelem.hpp
  5. //   Title:    C++ Class Libraries
  6. //  Notice:    John M. Weeder
  7. //                 Copyright (c) 1993. All rights reserved.
  8. //             This module contains proprietary information and should be 
  9. //                treated as confidential.
  10. //
  11. //----------------------------------------------------------------------------
  12. //                           MAINTENANCE HISTORY
  13. //
  14. // $Workfile$
  15. // $Revision$
  16. //   $Author$
  17. //     $Date$
  18. //      $Log$    
  19. //
  20. //----------------------------------------------------------------------------
  21. //                             MODULE NARRATIVE
  22. //
  23. //    This module contains code for the class CL_ELEMENT.
  24. //
  25. //    The code in this module may be written in C++ or C.
  26. //
  27. //    This module is portable to:
  28. //        DOS 3.X+
  29. //        MS Windows 3.X+
  30. //        OS/2 2.X+
  31. //        OS/2 2.0 PM
  32. //
  33. //    The following compilers are supported:
  34. //        MSC 6.0A
  35. //        MSC/C++ 7.0
  36. //        Borland C++ 3.1 for DOS
  37. //        Borland C++ 1.0 for OS/2 2.X
  38. //
  39. //----------------------------------------------------------------------------
  40.  
  41.  
  42. //----------------------------------------------------------------------------
  43. //    Class CL_ELEMENT
  44. //----------------------------------------------------------------------------
  45. #define CL_ELEMENT_PARENT CL_OBJECT
  46. class CLASSTYPE CL_ELEMENT : public CL_ELEMENT_PARENT
  47. {
  48.     friend class CLASSTYPE CL_LIST;
  49.  
  50.     PCL_ELEMENT pelemPrev,pelemNext;        // Pointer to next and previous
  51.     PCL_LIST plist;                            // Pointer to owner or NULL
  52.  
  53. public:
  54.     FN_M CL_ELEMENT();
  55.     FN_M CL_ELEMENT(RCCL_ELEMENT);
  56.     virtual FN_M ~CL_ELEMENT();
  57.  
  58.     virtual BOOL FN_M Destroy(BOOL = TRUE);
  59.     virtual BOOL FN_M Initialize(SHORT = CL_INIT_ALL);
  60.     BOOL FN_M InList() const
  61.         {
  62.         return plist != NULL;
  63.         }
  64.      PCL_LIST FN_M List() const
  65.         {
  66.         return plist;
  67.         }
  68.     PCL_ELEMENT FN_M Next() const
  69.         {
  70.         return pelemNext;
  71.         }
  72.     RCCL_ELEMENT FN_M operator=(RCCL_ELEMENT);
  73.     PCL_ELEMENT FN_M Previous() const
  74.         {
  75.         return pelemPrev;
  76.         }
  77.     virtual BOOL FN_M Retrieve(PCSZ, PCSZ = NULL);
  78.     virtual BOOL FN_M Store(PCSZ, PCSZ = NULL);
  79.  
  80. #if COMPILE_DEBUG
  81.     static VOID FN_M Print(PCCL_ELEMENT = NULL, PCSZ = NULL, SIZET = 0);
  82.     static BOOL FN_M Test(SHORT = 0);
  83. #endif
  84.  
  85. protected:
  86.  
  87. private:
  88. };
  89. //----------------------------------------------------------------------------
  90. //------------------------------- End of File --------------------------------
  91. //----------------------------------------------------------------------------
  92.  
  93.